<!DOCTYPE html><html><head>
      <title>5php&#x722C;&#x866B;&#xFF08;&#x6293;&#x53D6;&#x5B9E;&#x6218;&#xFF09;</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      
      <link rel="stylesheet" href="file:///c:\Users\Administrator\.vscode\extensions\shd101wyy.markdown-preview-enhanced-0.4.3\node_modules\@shd101wyy\mume\dependencies\katex\katex.min.css">
      
      

      
      
      
      
      
      

      <style>
      /**
 * prism.js Github theme based on GitHub's theme.
 * @author Sam Clarke
 */
code[class*="language-"],
pre[class*="language-"] {
  color: #333;
  background: none;
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.4;

  -moz-tab-size: 8;
  -o-tab-size: 8;
  tab-size: 8;

  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
  padding: .8em;
  overflow: auto;
  /* border: 1px solid #ddd; */
  border-radius: 3px;
  /* background: #fff; */
  background: #f5f5f5;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: .1em;
  border-radius: .3em;
  white-space: normal;
  background: #f5f5f5;
}

.token.comment,
.token.blockquote {
  color: #969896;
}

.token.cdata {
  color: #183691;
}

.token.doctype,
.token.punctuation,
.token.variable,
.token.macro.property {
  color: #333;
}

.token.operator,
.token.important,
.token.keyword,
.token.rule,
.token.builtin {
  color: #a71d5d;
}

.token.string,
.token.url,
.token.regex,
.token.attr-value {
  color: #183691;
}

.token.property,
.token.number,
.token.boolean,
.token.entity,
.token.atrule,
.token.constant,
.token.symbol,
.token.command,
.token.code {
  color: #0086b3;
}

.token.tag,
.token.selector,
.token.prolog {
  color: #63a35c;
}

.token.function,
.token.namespace,
.token.pseudo-element,
.token.class,
.token.class-name,
.token.pseudo-class,
.token.id,
.token.url-reference .token.variable,
.token.attr-name {
  color: #795da3;
}

.token.entity {
  cursor: help;
}

.token.title,
.token.title .token.punctuation {
  font-weight: bold;
  color: #1d3e81;
}

.token.list {
  color: #ed6a43;
}

.token.inserted {
  background-color: #eaffea;
  color: #55a532;
}

.token.deleted {
  background-color: #ffecec;
  color: #bd2c00;
}

.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}


/* JSON */
.language-json .token.property {
  color: #183691;
}

.language-markup .token.tag .token.punctuation {
  color: #333;
}

/* CSS */
code.language-css,
.language-css .token.function {
  color: #0086b3;
}

/* YAML */
.language-yaml .token.atrule {
  color: #63a35c;
}

code.language-yaml {
  color: #183691;
}

/* Ruby */
.language-ruby .token.function {
  color: #333;
}

/* Markdown */
.language-markdown .token.url {
  color: #795da3;
}

/* Makefile */
.language-makefile .token.symbol {
  color: #795da3;
}

.language-makefile .token.variable {
  color: #183691;
}

.language-makefile .token.builtin {
  color: #0086b3;
}

/* Bash */
.language-bash .token.keyword {
  color: #0086b3;
}

/* highlight */
pre[data-line] {
  position: relative;
  padding: 1em 0 1em 3em;
}
pre[data-line] .line-highlight-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  display: block;
  width: 100%;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  padding: inherit 0;
  margin-top: 1em;
  background: hsla(24, 20%, 50%,.08);
  background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}

pre[data-line] .line-highlight:before, 
pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-start);
  position: absolute;
  top: .4em;
  left: .6em;
  min-width: 1em;
  padding: 0 .5em;
  background-color: hsla(24, 20%, 50%,.4);
  color: hsl(24, 20%, 95%);
  font: bold 65%/1.5 sans-serif;
  text-align: center;
  vertical-align: .3em;
  border-radius: 999px;
  text-shadow: none;
  box-shadow: 0 1px white;
}

pre[data-line] .line-highlight[data-end]:after {
  content: attr(data-end);
  top: auto;
  bottom: .4em;
}html body{font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;font-size:16px;line-height:1.6;color:#333;background-color:#fff;overflow:initial;box-sizing:border-box;word-wrap:break-word}html body>:first-child{margin-top:0}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{line-height:1.2;margin-top:1em;margin-bottom:16px;color:#000}html body h1{font-size:2.25em;font-weight:300;padding-bottom:.3em}html body h2{font-size:1.75em;font-weight:400;padding-bottom:.3em}html body h3{font-size:1.5em;font-weight:500}html body h4{font-size:1.25em;font-weight:600}html body h5{font-size:1.1em;font-weight:600}html body h6{font-size:1em;font-weight:600}html body h1,html body h2,html body h3,html body h4,html body h5{font-weight:600}html body h5{font-size:1em}html body h6{color:#5c5c5c}html body strong{color:#000}html body del{color:#5c5c5c}html body a:not([href]){color:inherit;text-decoration:none}html body a{color:#08c;text-decoration:none}html body a:hover{color:#00a3f5;text-decoration:none}html body img{max-width:100%}html body>p{margin-top:0;margin-bottom:16px;word-wrap:break-word}html body>ul,html body>ol{margin-bottom:16px}html body ul,html body ol{padding-left:2em}html body ul.no-list,html body ol.no-list{padding:0;list-style-type:none}html body ul ul,html body ul ol,html body ol ol,html body ol ul{margin-top:0;margin-bottom:0}html body li{margin-bottom:0}html body li.task-list-item{list-style:none}html body li>p{margin-top:0;margin-bottom:0}html body .task-list-item-checkbox{margin:0 .2em .25em -1.8em;vertical-align:middle}html body .task-list-item-checkbox:hover{cursor:pointer}html body blockquote{margin:16px 0;font-size:inherit;padding:0 15px;color:#5c5c5c;border-left:4px solid #d6d6d6}html body blockquote>:first-child{margin-top:0}html body blockquote>:last-child{margin-bottom:0}html body hr{height:4px;margin:32px 0;background-color:#d6d6d6;border:0 none}html body table{margin:10px 0 15px 0;border-collapse:collapse;border-spacing:0;display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all}html body table th{font-weight:bold;color:#000}html body table td,html body table th{border:1px solid #d6d6d6;padding:6px 13px}html body dl{padding:0}html body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:bold}html body dl dd{padding:0 16px;margin-bottom:16px}html body code{font-family:Menlo,Monaco,Consolas,'Courier New',monospace;font-size:.85em !important;color:#000;background-color:#f0f0f0;border-radius:3px;padding:.2em 0}html body code::before,html body code::after{letter-spacing:-0.2em;content:"\00a0"}html body pre>code{padding:0;margin:0;font-size:.85em !important;word-break:normal;white-space:pre;background:transparent;border:0}html body .highlight{margin-bottom:16px}html body .highlight pre,html body pre{padding:1em;overflow:auto;font-size:.85em !important;line-height:1.45;border:#d6d6d6;border-radius:3px}html body .highlight pre{margin-bottom:0;word-break:normal}html body pre code,html body pre tt{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}html body pre code:before,html body pre tt:before,html body pre code:after,html body pre tt:after{content:normal}html body p,html body blockquote,html body ul,html body ol,html body dl,html body pre{margin-top:0;margin-bottom:16px}html body kbd{color:#000;border:1px solid #d6d6d6;border-bottom:2px solid #c7c7c7;padding:2px 4px;background-color:#f0f0f0;border-radius:3px}@media print{html body{background-color:#fff}html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{color:#000;page-break-after:avoid}html body blockquote{color:#5c5c5c}html body pre{page-break-inside:avoid}html body table{display:table}html body img{display:block;max-width:100%;max-height:100%}html body pre,html body code{word-wrap:break-word;white-space:pre}}.markdown-preview{width:100%;height:100%;box-sizing:border-box}.markdown-preview .pagebreak,.markdown-preview .newpage{page-break-before:always}.markdown-preview pre.line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.markdown-preview pre.line-numbers>code{position:relative}.markdown-preview pre.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.markdown-preview pre.line-numbers .line-numbers-rows>span{pointer-events:none;display:block;counter-increment:linenumber}.markdown-preview pre.line-numbers .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.markdown-preview .mathjax-exps .MathJax_Display{text-align:center !important}.markdown-preview:not([for="preview"]) .code-chunk .btn-group{display:none}.markdown-preview:not([for="preview"]) .code-chunk .status{display:none}.markdown-preview:not([for="preview"]) .code-chunk .output-div{margin-bottom:16px}.scrollbar-style::-webkit-scrollbar{width:8px}.scrollbar-style::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.scrollbar-style::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode]){position:relative;width:100%;height:100%;top:0;left:0;margin:0;padding:0;overflow:auto}html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{position:relative;top:0}@media screen and (min-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em calc(50% - 457px + 2em)}}@media screen and (max-width:914px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode]) .markdown-preview{font-size:14px !important;padding:1em}}@media print{html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{display:none}}html body[for="html-export"]:not([data-presentation-mode]) #sidebar-toc-btn{position:fixed;bottom:8px;left:8px;font-size:28px;cursor:pointer;color:inherit;z-index:99;width:32px;text-align:center;opacity:.4}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] #sidebar-toc-btn{opacity:1}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc{position:fixed;top:0;left:0;width:300px;height:100%;padding:32px 0 48px 0;font-size:14px;box-shadow:0 0 4px rgba(150,150,150,0.33);box-sizing:border-box;overflow:auto;background-color:inherit}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar{width:8px}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc::-webkit-scrollbar-thumb{border-radius:5px;background-color:rgba(150,150,150,0.66);border:4px solid rgba(150,150,150,0.66);background-clip:content-box}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc a{text-decoration:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{padding:0 1.6em;margin-top:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc li{margin-bottom:.8em}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .md-sidebar-toc ul{list-style-type:none}html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{left:300px;width:calc(100% -  300px);padding:2em calc(50% - 457px -  150px);margin:0;box-sizing:border-box}@media screen and (max-width:1274px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{padding:2em}}@media screen and (max-width:450px){html body[for="html-export"]:not([data-presentation-mode])[html-show-sidebar-toc] .markdown-preview{width:100%}}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .markdown-preview{left:50%;transform:translateX(-50%)}html body[for="html-export"]:not([data-presentation-mode]):not([html-show-sidebar-toc]) .md-sidebar-toc{display:none}
/* Please visit the URL below for more information: */
/*   https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */

      </style>
    </head>
    <body for="html-export">
      <div class="mume markdown-preview  ">
      <h1 class="mume-header" id="php%E7%88%AC%E8%99%AB%E6%8A%80%E6%9C%AF4">php&#x722C;&#x866B;&#x6280;&#x672F;5</h1>

<hr>
<h2 class="mume-header" id="%E7%88%AC%E8%99%AB%E6%8A%93%E5%8F%96%E6%96%B9%E5%BC%8F">&#x722C;&#x866B;&#x6293;&#x53D6;&#x65B9;&#x5F0F;</h2>

<pre class="language-text">1. &#x63A5;&#x53E3;
2. &#x7F51;&#x9875;
3. &#x5FC3;&#x5F97;
</pre>
<hr>
<h3 class="mume-header" id="1-%E6%8E%A5%E5%8F%A3">1. &#x63A5;&#x53E3;</h3>

<ul>
<li>
<p>&#x5F88;&#x591A;&#x7F51;&#x7AD9;&#x662F;&#x7B2C;&#x4E09;&#x65B9;&#x5E73;&#x53F0;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x8C03;&#x7528;&#x63A5;&#x53E3;&#x6570;&#x636E;&#x3002;</p>
</li>
<li>
<p>&#x6BD4;&#x5982;&#xFF1A;</p>
<ul>
<li>&#x817E;&#x8BAF;&#x5F00;&#x53D1;&#x5E73;&#x53F0;&#xFF1A;&#x5FAE;&#x4FE1;&#x767B;&#x5F55;&#x3001;&#x5FAE;&#x4FE1;&#x652F;&#x4ED8;&#x3002;&#x7F51;&#x5740;&#xFF1A;<a href="http://open.tencent.com">open.tencent.com</a></li>
<li>&#x963F;&#x91CC;&#x5DF4;&#x5DF4;&#x5F00;&#x653E;&#x5E73;&#x53F0;&#xFF1A;&#x4EA7;&#x54C1;&#x3001;&#x7269;&#x6D41;&#x3001;&#x4F1A;&#x5458;&#x3001;&#x641C;&#x7D22;&#x3002;&#x7F51;&#x5740;&#xFF1A;<a href="http://open.1688.com">open.1688.com</a></li>
<li>&#x805A;&#x5408;&#x6570;&#x636E;&#xFF1A;&#x77ED;&#x4FE1;&#x9A8C;&#x8BC1;&#x7801;&#x3001;&#x5FEB;&#x9012;&#x3001;&#x5929;&#x6C14;&#x3001;&#x8F66;&#x8F86;&#x8FDD;&#x7AE0;&#x3002;&#x7F51;&#x5740;&#xFF1A;<a href="http://www.juhe.cn">www.juhe.cn</a></li>
</ul>
</li>
<li>
<p>&#x6211;&#x4EEC;&#x505A;&#x4E2A;&#x805A;&#x5408;&#x6570;&#x636E;&#x793A;&#x4F8B;&#xFF1A;</p>
<ul>
<li>&#x624B;&#x673A;&#x53F7;&#x7801;&#x5F52;&#x5C5E;&#x5730;key&#xFF1A;4d6cce531387deeedf359687fb04c163</li>
<li>&#x5168;&#x56FD;&#x5929;&#x6C14;&#x9884;&#x62A5;key&#xFF1A;abc4b64ae7656b460723402175a5650b</li>
</ul>
</li>
</ul>
<blockquote>
<p><strong>&#x793A;&#x4F8B;&#xFF1A;</strong></p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token variable">$url</span> <span class="token operator">=</span> <span class="token double-quoted-string string">&quot;http://v.juhe.cn/weather/citys&quot;</span><span class="token punctuation">;</span>
    <span class="token variable">$params</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span>
        <span class="token double-quoted-string string">&quot;key&quot;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token double-quoted-string string">&quot;db741b7e6bcb5d461ce892c1f16040fd&quot;</span><span class="token punctuation">,</span>
    <span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token variable">$paramstring</span> <span class="token operator">=</span> <span class="token function">http_build_query</span><span class="token punctuation">(</span><span class="token variable">$params</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token variable">$content</span> <span class="token operator">=</span> <span class="token function">juheCurl</span><span class="token punctuation">(</span><span class="token variable">$url</span><span class="token punctuation">,</span> <span class="token variable">$paramstring</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token variable">$result</span> <span class="token operator">=</span> <span class="token function">json_decode</span><span class="token punctuation">(</span><span class="token variable">$content</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token variable">$result</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token function">return_json</span><span class="token punctuation">(</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token variable">$result</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
        <span class="token function">return_json</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;&#x63A5;&#x53E3;&#x51FA;&#x9519;&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    <span class="token comment">// json&#x6570;&#x636E;&#x683C;&#x5F0F;&#x6574;&#x7406;</span>
    <span class="token keyword">function</span> <span class="token function">return_json</span><span class="token punctuation">(</span><span class="token variable">$code</span><span class="token punctuation">,</span><span class="token variable">$data</span><span class="token operator">=</span><span class="token keyword">array</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token variable">$code</span> <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token variable">$array</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span>
                <span class="token single-quoted-string string">&apos;code&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token number">0</span><span class="token punctuation">,</span>
                <span class="token single-quoted-string string">&apos;msg&apos;</span>  <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token single-quoted-string string">&apos;success&apos;</span><span class="token punctuation">,</span>
                <span class="token single-quoted-string string">&apos;data&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$data</span>
            <span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token keyword">else</span><span class="token punctuation">{</span>
            <span class="token variable">$array</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span>
                <span class="token single-quoted-string string">&apos;code&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$code</span><span class="token punctuation">,</span>
                <span class="token single-quoted-string string">&apos;msg&apos;</span>  <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$data</span>
            <span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">echo</span> <span class="token function">json_encode</span><span class="token punctuation">(</span><span class="token variable">$array</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        exit<span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
    <span class="token comment">// &#x901A;&#x8FC7;curl&#x8BF7;&#x6C42;&#x63A5;&#x53E3;</span>
    <span class="token keyword">function</span> <span class="token function">juheCurl</span><span class="token punctuation">(</span><span class="token variable">$url</span><span class="token punctuation">,</span> <span class="token variable">$params</span> <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token variable">$ispost</span> <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token variable">$httpInfo</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token variable">$ch</span> <span class="token operator">=</span> <span class="token function">curl_init</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_HTTP_VERSION</span><span class="token punctuation">,</span> <span class="token constant">CURL_HTTP_VERSION_1_1</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x8BA9; cURL &#x81EA;&#x5DF1;&#x5224;&#x65AD;&#x4F7F;&#x7528;&#x54EA;&#x4E2A;&#x7248;&#x672C;&#x3002; (&#x5F3A;&#x5236;&#x4F7F;&#x7528; HTTP/1.1)&#x3002;</span>
        <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_USERAGENT</span><span class="token punctuation">,</span> <span class="token single-quoted-string string">&apos;JuheData&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x5728;HTTP&#x8BF7;&#x6C42;&#x4E2D;&#x5305;&#x542B;&#x4E00;&#x4E2A;&quot;User-Agent: &quot;&#x5934;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x3002;</span>
        <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_CONNECTTIMEOUT</span><span class="token punctuation">,</span> <span class="token number">60</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x5728;&#x5C1D;&#x8BD5;&#x8FDE;&#x63A5;&#x65F6;&#x7B49;&#x5F85;&#x7684;&#x79D2;&#x6570;&#x3002;&#x8BBE;&#x7F6E;&#x4E3A;0&#xFF0C;&#x5219;&#x65E0;&#x9650;&#x7B49;&#x5F85;&#x3002;</span>
        <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_TIMEOUT</span><span class="token punctuation">,</span> <span class="token number">60</span><span class="token punctuation">)</span><span class="token punctuation">;</span>  <span class="token comment">// &#x8BBE;&#x7F6E;&#x8D85;&#x65F6;&#x9650;&#x5236;&#x9632;&#x6B62;&#x6B7B;&#x5FAA;&#x73AF;</span>
        <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_RETURNTRANSFER</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x8981;&#x6C42;&#x7ED3;&#x679C;&#x4FDD;&#x5B58;&#x5230;&#x5B57;&#x7B26;&#x4E32;&#x4E2D;&#x8FD8;&#x662F;&#x8F93;&#x51FA;&#x5230;&#x5C4F;&#x5E55;&#x4E0A;</span>
        <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_FOLLOWLOCATION</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x722C;&#x53D6;&#x91CD;&#x5B9A;&#x5411;&#x9875;&#x9762;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token variable">$ispost</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_POST</span><span class="token punctuation">,</span> <span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x53D1;&#x9001;&#x4E00;&#x4E2A;&#x5E38;&#x89C4;&#x7684;Post&#x8BF7;&#x6C42;</span>
            <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_POSTFIELDS</span><span class="token punctuation">,</span> <span class="token variable">$params</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// Post&#x63D0;&#x4EA4;&#x7684;&#x6570;&#x636E;&#x5305;</span>
            <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_URL</span><span class="token punctuation">,</span> <span class="token variable">$url</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x8BBE;&#x7F6E;URL</span>
        <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
            <span class="token comment">// GET&#x8BF7;&#x6C42;&#xFF0C;&#x7EC4;&#x88C5;url</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token variable">$params</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_URL</span><span class="token punctuation">,</span> <span class="token variable">$url</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;?&apos;</span><span class="token punctuation">.</span><span class="token variable">$params</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token function">curl_setopt</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLOPT_URL</span><span class="token punctuation">,</span> <span class="token variable">$url</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
        <span class="token variable">$response</span> <span class="token operator">=</span> <span class="token function">curl_exec</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x8FD0;&#x884C;cURL&#xFF0C;&#x8BF7;&#x6C42;URL&#xFF0C;&#x628A;&#x7ED3;&#x679C;&#x590D;&#x5236;&#x7ED9;&#x53D8;&#x91CF;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token variable">$response</span> <span class="token operator">===</span> <span class="token constant">FALSE</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">echo</span> <span class="token double-quoted-string string">&quot;cURL Error: &quot;</span> <span class="token punctuation">.</span> <span class="token function">curl_error</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">//&#x6355;&#x6293;&#x5F02;&#x5E38;</span>
            <span class="token keyword">return</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token variable">$httpCode</span> <span class="token operator">=</span> <span class="token function">curl_getinfo</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">,</span> <span class="token constant">CURLINFO_HTTP_CODE</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">// &#x83B7;&#x53D6;&#x4E00;&#x4E2A;cURL&#x8FDE;&#x63A5;&#x8D44;&#x6E90;&#x53E5;&#x67C4;&#x7684;&#x4FE1;&#x606F;</span>
        <span class="token variable">$httpInfo</span> <span class="token operator">=</span> <span class="token function">array_merge</span><span class="token punctuation">(</span><span class="token variable">$httpInfo</span><span class="token punctuation">,</span> <span class="token function">curl_getinfo</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token function">curl_close</span><span class="token punctuation">(</span><span class="token variable">$ch</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">return</span> <span class="token variable">$response</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
</pre><hr>
<h3 class="mume-header" id="2-%E7%BD%91%E9%A1%B5">2. &#x7F51;&#x9875;</h3>

<ul>
<li>&#x7F51;&#x9875;&#x6293;&#x53D6;&#xFF0C;&#x6211;&#x4EEC;&#x62FF;&#x65B0;&#x95FB;&#x505A;&#x6848;&#x4F8B;&#xFF1A;<a href="http://news.cyol.com">news.cyol.com</a></li>
<li>&#x65B0;&#x95FB;&#x7F51;&#x7AD9;&#xFF0C;&#x6211;&#x4EEC;&#x4E00;&#x822C;&#x4E0D;&#x6293;&#x53D6;&#x70ED;&#x95E8;&#xFF0C;&#x53EA;&#x4F1A;&#x6293;&#x53D6;&#x5206;&#x7C7B;&#x548C;&#x65B0;&#x95FB;&#x5217;&#x8868;&#xFF0C;&#x65B0;&#x95FB;&#x5185;&#x5BB9;</li>
<li>&#x5F88;&#x591A;&#x7F51;&#x7AD9;&#x4E5F;&#x662F;&#x8FD9;&#x6837;&#xFF0C;&#x6BD4;&#x5982;&#x6DD8;&#x5B9D;&#x7F51;&#x7AD9;&#xFF0C;&#x6211;&#x4EEC;&#x4E0D;&#x53EF;&#x80FD;&#x6293;&#x53D6;&#x9996;&#x9875;&#x4E0A;&#x7684;&#x5546;&#x54C1;</li>
<li>&#x6CA1;&#x6709;&#x89C4;&#x5219;&#x7684;&#xFF0C;&#x6293;&#x53D6;&#x540E;&#xFF0C;&#x65E0;&#x6CD5;&#x6279;&#x91CF;&#x5904;&#x7406;&#x3002;&#x800C;&#x4E14;&#x63A8;&#x8350;&#x7684;&#x5546;&#x54C1;&#xFF0C;&#x5728;&#x5217;&#x8868;&#x91CC;&#x4E5F;&#x4F1A;&#x6709;&#x8FD9;&#x6761;&#x5546;&#x54C1;&#x7684;&#x3002;</li>
</ul>
<blockquote>
<p>&#x7B2C;&#x4E00;&#x6B65;&#xFF1A;&#x627E;&#x5BFB;&#x65B0;&#x95FB;&#x5206;&#x7C7B;&#x63A5;&#x53E3;&#x3001;&#x6216;&#x65B0;&#x95FB;&#x5206;&#x7C7B;&#x89C4;&#x5219;</p>
</blockquote>
<ul>
<li><a href="http://zqbapp.cyol.com/zqzxapi/api.php?s=/Web/getTypeListCache">zqbapp.cyol.com/zqzxapi/api.php?s=/Web/getTypeListCache</a></li>
</ul>
<blockquote>
<p>&#x7B2C;&#x4E8C;&#x6B65;&#xFF1A;&#x6839;&#x636E;&#x6570;&#x636E;&#xFF0C;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;<br>
news_source_cat&#xFF1A;&#x6765;&#x6E90;&#x5206;&#x7C7B;&#x8868;</p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token constant">CREATE</span> <span class="token constant">TABLE</span> `news_source_cat` <span class="token punctuation">(</span>
    `cat_id` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">AUTO_INCREMENT</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x5206;&#x7C7B;ID&apos;</span><span class="token punctuation">,</span>
    `source_id` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;0&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;ID&apos;</span><span class="token punctuation">,</span>
    `source_fid` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;0&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;&#x7236;ID&apos;</span><span class="token punctuation">,</span>
    `source_name` <span class="token function">varchar</span><span class="token punctuation">(</span><span class="token number">50</span><span class="token punctuation">)</span> <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;&#x5206;&#x7C7B;&#x540D;&apos;</span><span class="token punctuation">,</span>
    `source_status` <span class="token function">tinyint</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;1&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;&#x72B6;&#x6001; 1&#x5F00;&#x542F; 0&#x7981;&#x7528;&apos;</span><span class="token punctuation">,</span>
    `num` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;0&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6293;&#x53D6;&#x6B21;&#x6570;&apos;</span><span class="token punctuation">,</span>
    <span class="token constant">PRIMARY</span> <span class="token function">KEY</span> <span class="token punctuation">(</span>`cat_id`<span class="token punctuation">)</span>
<span class="token punctuation">)</span> <span class="token constant">ENGINE</span><span class="token operator">=</span>MyISAM <span class="token keyword">DEFAULT</span> <span class="token constant">CHARSET</span><span class="token operator">=</span>utf8 <span class="token constant">COMMENT</span><span class="token operator">=</span><span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;&#x5206;&#x7C7B;&#x8868;&apos;</span><span class="token punctuation">;</span>
</pre><blockquote>
<p>&#x7B2C;&#x4E09;&#x6B65;&#xFF1A;&#x6293;&#x53D6;&#x6570;&#x636E;&#xFF0C;&#x5B58;&#x50A8;&#x5230;&#x6570;&#x636E;&#x5E93;</p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token keyword">require</span> <span class="token single-quoted-string string">&apos;function.php&apos;</span><span class="token punctuation">;</span>
    <span class="token variable">$url</span> <span class="token operator">=</span> <span class="token double-quoted-string string">&quot;https://zqbapp.cyol.com/zqzxapi/api.php?s=/Web/getTypeListCache&quot;</span><span class="token punctuation">;</span>
    <span class="token comment">// &#x83B7;&#x53D6;&#x5230;&#x6570;&#x636E;</span>
    <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token function">juheCurl</span><span class="token punctuation">(</span><span class="token variable">$url</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">// &#x53BB;&#x9664;&#x6570;&#x636E;&#x7684;&#x5F00;&#x5934;&#x62EC;&#x53F7; &#x548C; &#x7ED3;&#x675F;&#x62EC;&#x53F7;</span>
    <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token function">substr</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token function">substr</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token function">strlen</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">)</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">// json&#x89E3;&#x6790;&#x83B7;&#x53D6;&#x7684;&#x6570;&#x636E;</span>
    <span class="token variable">$b</span> <span class="token operator">=</span> <span class="token function">json_decode</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token comment">// &#x5FAA;&#x73AF;&#x5904;&#x7406;&#x6570;&#x636E;</span>
    <span class="token keyword">foreach</span> <span class="token punctuation">(</span><span class="token variable">$b</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;data&apos;</span><span class="token punctuation">]</span> <span class="token keyword">as</span> <span class="token variable">$v</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token variable">$v</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;tid&apos;</span><span class="token punctuation">]</span> <span class="token operator">&lt;=</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">continue</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token keyword">else</span><span class="token punctuation">{</span>
            <span class="token function">setCatData</span><span class="token punctuation">(</span><span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
    <span class="token keyword">return</span> <span class="token boolean">true</span><span class="token punctuation">;</span>

    <span class="token keyword">function</span> <span class="token function">setCatData</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token variable">$data</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span>
            <span class="token single-quoted-string string">&apos;source_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;tid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;source_fid&apos;</span><span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;pid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;source_name&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;cnname&apos;</span><span class="token punctuation">]</span>
        <span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token variable">$ret</span> <span class="token operator">=</span> <span class="token function">insert</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;news_source_cat&apos;</span><span class="token punctuation">,</span><span class="token variable">$data</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$ret</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token operator">!</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;childs&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">foreach</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;childs&apos;</span><span class="token punctuation">]</span> <span class="token keyword">as</span> <span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token function">setCatData</span><span class="token punctuation">(</span><span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
</pre><blockquote>
<p>&#x7B2C;&#x56DB;&#x6B65;&#xFF1A;&#x627E;&#x5BFB;&#x65B0;&#x95FB;&#x5217;&#x8868;&#x63A5;&#x53E3;&#x3001;&#x6216;&#x65B0;&#x95FB;&#x5217;&#x8868;&#x89C4;&#x5219;</p>
</blockquote>
<ul>
<li><a href="http://zqbapp.cyol.com/zqzxapi/api.php?s=/Web/getNewsListCache/tid/767/page/1">zqbapp.cyol.com/zqzxapi/api.php?s=/Web/getNewsListCache/tid/767/page/1</a></li>
</ul>
<blockquote>
<p>&#x7B2C;&#x4E94;&#x6B65;&#xFF1A;&#x6839;&#x636E;&#x6570;&#x636E;&#xFF0C;&#x521B;&#x5EFA;&#x6570;&#x636E;&#x5E93;<br>
news_list&#xFF1A;&#x6765;&#x6E90;&#x65B0;&#x95FB;&#x8868;</p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php"><span class="token constant">CREATE</span> <span class="token constant">TABLE</span> `news_list` <span class="token punctuation">(</span>
    `news_id` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">AUTO_INCREMENT</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x65B0;&#x95FB;ID&apos;</span><span class="token punctuation">,</span>
    `cat_id` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;0&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x672C;&#x5730;&#x5206;&#x7C7B;ID&apos;</span><span class="token punctuation">,</span>
    `source_id` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;0&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;ID&apos;</span><span class="token punctuation">,</span>
    `source_nid` <span class="token function">int</span><span class="token punctuation">(</span><span class="token number">11</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;0&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6765;&#x6E90;&#x65B0;&#x95FB;ID&apos;</span><span class="token punctuation">,</span>
    `title` <span class="token function">varchar</span><span class="token punctuation">(</span><span class="token number">500</span><span class="token punctuation">)</span> <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x6807;&#x9898;&apos;</span><span class="token punctuation">,</span>
    `title_md5` <span class="token function">char</span><span class="token punctuation">(</span><span class="token number">32</span><span class="token punctuation">)</span> <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x52A0;&#x5BC6;&#x540E;&#x7684;&#x6807;&#x9898;&apos;</span><span class="token punctuation">,</span>
    `f_title` <span class="token function">varchar</span><span class="token punctuation">(</span><span class="token number">500</span><span class="token punctuation">)</span> <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x7236;&#x6807;&#x9898;&apos;</span><span class="token punctuation">,</span>
    `type` <span class="token function">tinyint</span><span class="token punctuation">(</span><span class="token number">3</span><span class="token punctuation">)</span> unsigned <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token keyword">DEFAULT</span> <span class="token single-quoted-string string">&apos;1&apos;</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x7C7B;&#x578B; 1&#x6587;&#x5B57;&#x65B0;&#x95FB; 2&#x56FE;&#x6587;&#x65B0;&#x95FB; 3&#x8054;&#x56FE;&#x65B0;&#x95FB; 4&#x4E09;&#x8FDE;&#x56FE; 5&#x666E;&#x901A;&#x65B0;&#x95FB;&#x5927;&#x56FE; 6 &#x89C6;&#x9891; 7 H5 8&#x5E7F;&#x544A; 9&#x76F4;&#x64AD;&apos;</span><span class="token punctuation">,</span>
    `img` <span class="token function">varchar</span><span class="token punctuation">(</span><span class="token number">500</span><span class="token punctuation">)</span> <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x56FE;&#x7247;&apos;</span><span class="token punctuation">,</span>
    `url` <span class="token function">varchar</span><span class="token punctuation">(</span><span class="token number">500</span><span class="token punctuation">)</span> <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x8BE6;&#x60C5;&#x7F51;&#x5740;&apos;</span><span class="token punctuation">,</span>
    `content` text <span class="token constant">NOT</span> <span class="token keyword">NULL</span> <span class="token constant">COMMENT</span> <span class="token single-quoted-string string">&apos;&#x65B0;&#x95FB;&#x8BE6;&#x60C5;&apos;</span><span class="token punctuation">,</span>
    <span class="token constant">PRIMARY</span> <span class="token function">KEY</span> <span class="token punctuation">(</span>`news_id`<span class="token punctuation">)</span>
<span class="token punctuation">)</span> <span class="token constant">ENGINE</span><span class="token operator">=</span>MyISAM <span class="token constant">AUTO_INCREMENT</span><span class="token operator">=</span><span class="token number">160</span> <span class="token keyword">DEFAULT</span> <span class="token constant">CHARSET</span><span class="token operator">=</span>utf8 <span class="token constant">COMMENT</span><span class="token operator">=</span><span class="token single-quoted-string string">&apos;&#x65B0;&#x95FB;&#x5217;&#x8868;&apos;</span><span class="token punctuation">;</span>
</pre><blockquote>
<p>&#x7B2C;&#x516D;&#x6B65;&#xFF1A;&#x6293;&#x53D6;&#x6570;&#x636E;&#xFF0C;&#x5B58;&#x50A8;&#x5230;&#x6570;&#x636E;&#x5E93;</p>
</blockquote>
<pre data-role="codeBlock" data-info="php" class="language-php">    <span class="token keyword">require</span> <span class="token single-quoted-string string">&apos;function.php&apos;</span><span class="token punctuation">;</span>
    <span class="token comment">// &#x67E5;&#x8BE2;&#x5206;&#x7C7B;&#x8868;&#xFF0C;&#x5355;&#x6761;&#x6570;&#x636E;</span>
    <span class="token variable">$cat</span> <span class="token operator">=</span> <span class="token function">find</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;news_source_cat&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;*&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;source_status=1&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;num&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token keyword">for</span><span class="token punctuation">(</span><span class="token variable">$i</span><span class="token operator">=</span><span class="token number">1</span><span class="token punctuation">;</span><span class="token variable">$i</span><span class="token operator">&lt;=</span><span class="token number">5</span><span class="token punctuation">;</span><span class="token variable">$i</span><span class="token operator">++</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token variable">$cat</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;source_fid&apos;</span><span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token number">676</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token variable">$url</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;https://zqbapp.cyol.com/zqzxapi/api.php?s=/Web/getNewsListCache/tid/&apos;</span><span class="token punctuation">.</span><span class="token variable">$cat</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;source_id&apos;</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;/page/&apos;</span><span class="token punctuation">.</span><span class="token variable">$i</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token keyword">else</span><span class="token punctuation">{</span>
            <span class="token variable">$url</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;https://zqbapp.cyol.com/zqzxapi/api.php?s=/Web/typeHomePage/tid/&apos;</span><span class="token punctuation">.</span><span class="token variable">$cat</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;source_id&apos;</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;/Page/&apos;</span><span class="token punctuation">.</span><span class="token variable">$i</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token comment">// &#x83B7;&#x53D6;&#x5230;&#x6570;&#x636E;</span>
        <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token function">curl_data</span><span class="token punctuation">(</span><span class="token variable">$url</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x53BB;&#x9664;&#x6570;&#x636E;&#x7684;&#x5F00;&#x5934;&#x62EC;&#x53F7; &#x548C; &#x7ED3;&#x675F;&#x62EC;&#x53F7;</span>
        <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token function">substr</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">,</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token variable">$a</span> <span class="token operator">=</span> <span class="token function">substr</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">,</span><span class="token number">0</span><span class="token punctuation">,</span><span class="token function">strlen</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">)</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">// json&#x89E3;&#x6790;&#x83B7;&#x53D6;&#x7684;&#x6570;&#x636E;</span>
        <span class="token variable">$b</span> <span class="token operator">=</span> <span class="token function">json_decode</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">,</span><span class="token boolean">true</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x5FAA;&#x73AF;&#x5904;&#x7406;&#x6570;&#x636E;</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token variable">$b</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;code&apos;</span><span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token single-quoted-string string">&apos;200&apos;</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token variable">$cat</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;source_fid&apos;</span><span class="token punctuation">]</span> <span class="token operator">==</span> <span class="token number">676</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">foreach</span> <span class="token punctuation">(</span><span class="token variable">$b</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;data&apos;</span><span class="token punctuation">]</span> <span class="token keyword">as</span> <span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                    <span class="token variable">$ret</span> <span class="token operator">=</span> <span class="token function">setListData</span><span class="token punctuation">(</span><span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">echo</span> <span class="token variable">$ret</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token keyword">else</span><span class="token punctuation">{</span>
                <span class="token keyword">foreach</span> <span class="token punctuation">(</span><span class="token variable">$b</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;data&apos;</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;typenews&apos;</span><span class="token punctuation">]</span> <span class="token keyword">as</span> <span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                    <span class="token variable">$ret</span> <span class="token operator">=</span> <span class="token function">setListData</span><span class="token punctuation">(</span><span class="token variable">$v</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">echo</span> <span class="token variable">$ret</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>

    <span class="token keyword">function</span> <span class="token function">setListData</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
        <span class="token comment">// &#x8D4B;&#x503C;&#x6807;&#x9898;&#x7ED9;&#x65B0;&#x53D8;&#x91CF;</span>
        <span class="token variable">$title</span> <span class="token operator">=</span> <span class="token function">trim</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;title&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x67E5;&#x8BE2;&#x65B0;&#x95FB;&#x662F;&#x5426;&#x5DF2;&#x5B58;&#x5728;&#xFF0C;&#x5B58;&#x5728;&#x8FDB;&#x5165;&#x4E0B;&#x4E00;&#x6761;&#x65B0;&#x95FB;&#x6293;&#x53D6;</span>
        <span class="token variable">$news</span> <span class="token operator">=</span> <span class="token function">find</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;news_list&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;*&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;title_md5=&quot;&apos;</span><span class="token punctuation">.</span><span class="token function">md5</span><span class="token punctuation">(</span><span class="token variable">$title</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;&quot;&apos;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token variable">$news</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;nid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;&#x5DF2;&#x5B58;&#x5728;&#xFF0C;&#x91C7;&#x96C6;&#x5931;&#x8D25;&#xFF01;&lt;br/&gt;&apos;</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token comment">// &#x901A;&#x8FC7;&#x6765;&#x6E90;ID&#xFF0C;&#x67E5;&#x8BE2;&#x672C;&#x9879;&#x76EE;&#x5206;&#x7C7B;ID</span>
        <span class="token variable">$cat</span> <span class="token operator">=</span> <span class="token function">find</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;news_source_cat&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;*&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;source_id=&apos;</span><span class="token punctuation">.</span><span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;tid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x63A5;&#x53E3;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x65E0;&#x6CD5;&#x5F97;&#x5230;&#x65B0;&#x95FB;&#x8BE6;&#x60C5;</span>
        <span class="token comment">/*
         * $url = &apos;https://zqbapp.cyol.com/zqzxapi/api.php?s=/News/newsinfo&apos;;
         * $curl = curl_data($url,array(&apos;device&apos;=&gt;12,&apos;nid&apos;=&gt;$a[&apos;nid&apos;]),1);
         */</span>
        <span class="token comment">// &#x6293;&#x53D6;&#x65B0;&#x95FB;&#x8BE6;&#x60C5;url&#x6570;&#x636E;</span>
        <span class="token variable">$curl</span> <span class="token operator">=</span> <span class="token function">curl_data</span><span class="token punctuation">(</span><span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;newsurl&apos;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;</span>
        <span class="token variable">$pattem</span> <span class="token operator">=</span> <span class="token single-quoted-string string">&apos;/&lt;div class=&quot;news-content dd&quot; id=&quot;news-content&quot;&gt;(.*?) &lt;\/div&gt;/si&apos;</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x622A;&#x53D6;&#x9700;&#x8981;&#x7684;&#x6587;&#x7AE0;&#x8BE6;&#x60C5;</span>
        <span class="token variable">$preg</span> <span class="token operator">=</span> <span class="token function">preg_match</span><span class="token punctuation">(</span><span class="token variable">$pattem</span><span class="token punctuation">,</span><span class="token variable">$curl</span><span class="token punctuation">,</span><span class="token variable">$matches</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token variable">$content</span> <span class="token operator">=</span> <span class="token variable">$matches</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;&lt;/div&gt;&apos;</span><span class="token punctuation">;</span>
        <span class="token comment">// &#x628A;&#x6765;&#x6E90;&#x7F51;&#x7AD9;&#x7684;&#x56FE;&#x7247;&#x6807;&#x8BC6;&#xFF0C;&#x66FF;&#x6362;&#x4E3A;HTML&#x6807;&#x8BC6;</span>
        <span class="token variable">$content</span> <span class="token operator">=</span> <span class="token function">preg_replace</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;/data-original/&apos;</span><span class="token punctuation">,</span><span class="token single-quoted-string string">&apos;src&apos;</span><span class="token punctuation">,</span><span class="token variable">$content</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token variable">$data</span> <span class="token operator">=</span> <span class="token keyword">array</span><span class="token punctuation">(</span>
            <span class="token single-quoted-string string">&apos;cat_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$cat</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;cat_id&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;source_id&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;tid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;source_nid&apos;</span><span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;nid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;title&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$title</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;title_md5&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token function">md5</span><span class="token punctuation">(</span><span class="token variable">$title</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;f_title&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;outline&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;type&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;type&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;img&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;imgs&apos;</span><span class="token punctuation">]</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;url&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;newsurl&apos;</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
            <span class="token single-quoted-string string">&apos;content&apos;</span> <span class="token operator">=</span><span class="token operator">&gt;</span> <span class="token function">htmlspecialchars</span><span class="token punctuation">(</span><span class="token variable">$content</span><span class="token punctuation">)</span><span class="token punctuation">,</span>
        <span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token variable">$ret</span> <span class="token operator">=</span> <span class="token function">insert</span><span class="token punctuation">(</span><span class="token single-quoted-string string">&apos;news_list&apos;</span><span class="token punctuation">,</span><span class="token variable">$data</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">if</span><span class="token punctuation">(</span><span class="token function">empty</span><span class="token punctuation">(</span><span class="token variable">$ret</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">return</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;nid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;&#x91C7;&#x96C6;&#x5931;&#x8D25;&#xFF01;&lt;br/&gt;&apos;</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">return</span> <span class="token variable">$a</span><span class="token punctuation">[</span><span class="token single-quoted-string string">&apos;nid&apos;</span><span class="token punctuation">]</span><span class="token punctuation">.</span><span class="token single-quoted-string string">&apos;&#x91C7;&#x96C6;&#x6210;&#x529F;&#xFF01;&lt;br/&gt;&apos;</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
</pre><hr>
<h3 class="mume-header" id="3-%E6%8A%93%E5%8F%96%E5%BF%83%E5%BE%97">3. &#x6293;&#x53D6;&#x5FC3;&#x5F97;</h3>

<ul>
<li>&#x5C3D;&#x53EF;&#x80FD;&#x627E;&#x5230;&#x8981;&#x6765;&#x6E90;&#x7684;&#x63A5;&#x53E3;&#x3002;</li>
<li>&#x5982;&#x679C;&#x6765;&#x6E90;&#x6709;app&#xFF0C;&#x5C3D;&#x53EF;&#x80FD;&#x5148;&#x4ECE;app&#x8FDB;&#x884C;&#x83B7;&#x53D6;&#x63A5;&#x53E3;&#x3002;</li>
<li>&#x5982;&#x679C;&#x6765;&#x6E90;&#x6CA1;&#x6709;app&#xFF0C;&#x53EF;&#x4EE5;&#x627E;&#x627E;&#x6765;&#x6E90;&#x6709;&#x6CA1;&#x6709;&#x624B;&#x673A;&#x7F51;&#x9875;&#x7248;&#x3002;</li>
<li>&#x624B;&#x673A;&#x7F51;&#x9875;&#x7248;&#xFF0C;&#x4E5F;&#x662F;&#x7528;ajax&#x8BF7;&#x6C42;&#x5217;&#x8868;&#xFF0C;&#x5217;&#x8868;&#x4E5F;&#x5C5E;&#x4E8E;&#x63A5;&#x53E3;&#x8FD4;&#x56DE;&#x3002;</li>
<li>&#x53EA;&#x80FD;&#x6293;&#x53D6;pc&#x7F51;&#x9875;&#x7248;&#xFF0C;&#x5C3D;&#x53EF;&#x80FD;&#x628A;&#x6B63;&#x5219;&#x5199;&#x7B80;&#x5355;&#x4E9B;&#x3002;</li>
<li>&#x6BD4;&#x5982;&#x6293;&#x53D6;&#x65B0;&#x95FB;&#xFF1A;1&#xFF0C;&#x5339;&#x914D;&#x6807;&#x9898;&#x3002;2&#xFF0C;&#x5339;&#x914D;&#x65B0;&#x95FB;&#x65F6;&#x95F4;&#x3002;3&#xFF0C;&#x5339;&#x914D;&#x8BE6;&#x60C5;&#x3002;</li>
<li>&#x5982;&#x679C;&#x65B0;&#x95FB;&#x8BE6;&#x60C5;&#xFF0C;&#x5185;&#x5BB9;&#x6709;&#x4E0D;&#x5BF9;&#x79F0;&#x7684;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x540E;&#x53F0;&#x505A;&#x5904;&#x7406;&#x529F;&#x80FD;&#x3002;</li>
<li>&#x65B0;&#x95FB;&#x5217;&#x8868;&#xFF0C;&#x90FD;&#x662F;&#x53EF;&#x4EE5;&#x7FFB;&#x9875;&#x7684;&#x3002;&#x9700;&#x8981;&#x8BB0;&#x5F97;&#x6293;&#x53D6;&#x9875;&#x6570;&#x3002;&#x6BCF;&#x6B21;&#x4E0D;&#x8981;&#x8D85;&#x8FC7;100&#x6761;&#x6293;&#x53D6;&#x3002;</li>
<li>&#x5982;&#x679C;&#x6709;&#x91CD;&#x590D;&#x7684;&#x65B0;&#x95FB;&#x3002;&#x53EF;&#x4EE5;&#x5728;&#x6293;&#x53D6;&#x65F6;&#xFF0C;&#x5BF9;&#x65B0;&#x95FB;&#x6807;&#x9898;&#xFF0C;&#x8FDB;&#x884C;md5&#x52A0;&#x5BC6;</li>
<li>&#x52A0;&#x5BC6;&#x540E;&#xFF0C;&#x5339;&#x914D;&#x6570;&#x636E;&#x5E93;&#x91CC;&#x7684;&#x52A0;&#x5BC6;&#x6807;&#x9898;&#x3002;&#x4E0D;&#x8981;&#x7528;&#x6807;&#x9898;&#x8FDB;&#x884C;&#x5339;&#x914D;&#xFF0C;&#x56E0;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#x5339;&#x914D;&#x4E0D;&#x591F;&#x51C6;&#x786E;&#x3002;</li>
</ul>

      </div>
      
      
    
    
    
    
    
    
    
    
  
    </body></html>